#include <iostream>

#include <omg/dds.hpp>
#include "RadarTrack.hpp"


int main(int, char**) {

    dds::domain::DomainId id = 0;
/*
    dds::domain::DomainParticipant dp(id);

    dds::pub::PublisherQos pqos;
    pqos << dds::qos::Partition("Tracks");

    dds::pub::Publisher pub(pqos, dp);

    dds::topic::TopicQos tqos;
    tqos << dds::policy::ReliableReliability()
         << dds::policy::TransientDurability()
         << dds::policy::KeepLastHistory(10)
         << dds::policy::TransportPriority(14);

    dds::topic::Topic<RadarTrack> topic("TrackTopic", tqos, dp);

    dds::pub::DataWriterQos dwqos(tqos);

    dds::pub::DataWriter<RadarTrack> dw;

    // RTI
    //dw = pub.create_datawriter(topic, dwqos);

    //PT
    dds::pub::DataWriter<RadarTrack> dwr(topic, dwqos, pub);
    dw = dwr;

    RadarTrack track("alpha", 100, 200);

    dw << track;

    dds::pub::AnyDataWriter adw (dw);

    // dwr = adw.get<RadarTrack>();
*/
}
